home *** CD-ROM | disk | FTP | other *** search
- /*
- YAMgetmail.rexx V1.3
- (C) 30.5.1997 A.Teichmann@t-online.de
-
- Dieses Arexx Script startet falls noch nicht geschenen Miami und Yam ,
- setzt MIAMI wenn es ONLINE ist in den Hintergrund.
- Dann wird die Post abgeholt ,neue Post gesendet,Miami in den Vordergrund
- geholt ,offline gesetzt und wieder falls es gestartet wurde beendet.
-
- Siehe YAMgetmail.Guide
- */
- NL="0a"x
- wait="rexx:waitforport" /* Pfad und Name für waitforport */
- run="c:run" /* Pfad und Name für run befehl */
- yam="YAM:YAM" /* Pfad und Name für YAM */
- miami="sys:terminal/internet/miami" /* Pfad und Name für MIAMI */
-
- textr=" *** ACHTUNG ! ***"nl"Ihr Mailserver ist"nl"nicht erreichbar."nl"konnte neue Mails nicht abholen."
- texts=" *** ACHTUNG ! ***"nl"Ihr Mailserver ist "nl"nicht erreichbar."nl"konnte Ihre Mails nicht senden."
- yamstart=0
- miamistart=0
- OPTIONS RESULTS
- if show("p","MIAMI.1") = 0 then do
- address command run" "miami
- miamistart=1
- end
- mi1:
- address command wait "MIAMI.1"
- if rc~=0 then siganl mi1
-
- if show("p","YAM") = 0 then do
- address command run" "yam" nocheck"
- yamstart=1
- end
- ya1: address command wait "YAM"
- if rc~=0 then signal ya1
-
- ADDRESS MIAMI.1
- ONLINE
- do forever
- address command wait "MIAMI"
- ADDRESS MIAMI.1
- ISONLINE
- IF RC = 1 THEN leave
- end
-
- rtresult=1
- if miamistart=1 then HIDE
- ADDRESS YAM
- SETFOLDER 0
- again:
- fail=0
- MAILCHECK
- if result =-1 then fail=1
- if fail=1 then request textr "Nochmal|Abbruch"
- if fail=1 then if result=0 then signal again
- again2:
- SETFOLDER 1
- getfolderinfo max
- zusenden=result
- if zusenden>0 then do
- fail=0
- MAILSENDALL
- if result =-1 then fail=1
- if fail=1 then request texts "Nochmal|Abbruch"
- if fail=1 then if result=0 then signal again2
- end
- SETFOLDER 0
- ADDRESS MIAMI.1
- if miamistart=1 then SHOW
- OFFLINE
- do forever
- address command wait "MIAMI"
- ADDRESS MIAMI.1
- ISONLINE
- IF RC = 0 THEN leave
- end
- if miamistart=1 then do
- ADDRESS MIAMI.1
- QUIT
- end
- if yamstart=1 then do
- ADDRESS YAM
- QUIT
- end
- exit
-